#include <iostream>
#include <list>
#include <vector>
#include <algorithm>
#include "TextDiff\TextComparer.h"
#include "CompareResult.h"

int main()
{
	std::string before = "awwwwwwwsdqwe";
	std::string after = "asdfffff";

	std::cout << before << std::endl;
	std::cout << after << std::endl << std::endl;
	/*             111
	0123456789     012
	awwwwwwwsd     qwe
	0       1234567
	a       sdfffff
	*/

	CompareResult cr;
	cr.initialize();
	std::cout << cr.compare(before, after) << std::endl;
	int len = cr.getLength();
	TextDiffAlgo::TextDiff* it = cr.getVector();

	for (int i = 0; i < len; i++) {
		std::cout << it[i].toString() << std::endl;
	}

	system("pause");
	return 0;
}
